<?php
	require("../librarys/funs/classdb.php");
	$db = new db;
		
	$table = $_GET["table"];
	$listid = $_GET["listid"];
	$listtt = $_GET["listtt"];
	//echo $loai;die;
	
	$listid = explode(",",$_GET['listid']);
	$listtt = explode(",",$_GET['listtt']);
	$field = array('thutu');
	
	for($i=0;$i<count($listid);$i++){
	$id = $listid[$i];
	$tt= $listtt[$i];
	
	$values = array(format($tt,0));
	$db->updateObject($table,$field,$values,"id='$id'");
	}
	header('location: index.php?p='.$table.'_quanly');
?>